﻿<%@ Page Title="Menu Manager" Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.Master" AutoEventWireup="true"
    CodeBehind="MenuManager.aspx.cs" Inherits="DesignLife.Admin.MenuManager" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="css/menumanager.css" type="text/css" media="screen" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager" runat="server"/>
    <div id="menumanager">
        <asp:UpdatePanel ID="managerUpdatePanel" runat="server">
            <ContentTemplate>
                <table style="width: 80%; border-color: #0099CC; border-width: 2px; border-style: Ridge;
                    background-color: #F0FFF0;">
                    <tr>
                        <td colspan="2">
                            <div style="padding: 5px 0 5px 50px; margin: 10px 0 10px 0;">
                                <asp:Label ID="managermessage" runat="server" CssClass="text-message" />
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div style="margin-right: 20px;">
                                <asp:HiddenField ID="hifID" runat="server" Value="" />
                                <span class="text-message">Category Name:</span><br />
                                <asp:TextBox ID="txtmenumanager_categoryname" runat="server" />
                            </div>
                        </td>
                        <td>
                            <div style="margin-right: 20px;">
                                <span class="text-message">Link:</span><br />
                                <asp:TextBox ID="txtmenumanager_link" runat="server" />
                            </div>
                        </td>
                        <td>
                            <div style="margin-right: 20px;">
                                <span class="text-message">Parrent:</span><br />
                                <asp:DropDownList ID="ddlmenumanager_parrent" runat="server" Width="150px" Height="22px" />
                            </div>
                        </td>
                        <td>
                            <div style="margin-right: 20px;">
                                <span class="text-message">Summary:</span><br />
                                <asp:TextBox ID="txtmenumanager_summary" runat="server" TextMode="MultiLine" />
                            </div>
                        </td>
                        <td>
                            <span class="text-message">Status:</span><br />
                            <asp:CheckBox ID="ckbmanager_status" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <div style="margin: 20px auto; height: 23px;">
                                <span style="width: 90px; height: 23px; float: left;">
                                    <asp:Button ID="managerAdd" runat="server" Text="Add" Style="height: 25px; width: 80px;"
                                        OnClick="managerAdd_Click" />
                                </span><span style="width: 90px; height: 23px; float: left;">
                                    <asp:Button ID="managerChange" runat="server" Text="Change" Style="height: 25px;
                                        width: 80px;" OnClick="managerChange_Click" />
                                </span><span style="width: 90px; height: 23px; float: left;">
                                    <asp:Button ID="managerCancel" runat="server" Text="Cancel" Style="height: 25px;
                                        width: 80px;" OnClick="managerCancel_Click" />
                                </span>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <table id="menumanager_Table" width="100%" style="background-color: White">
                                <tr>
                                    <th class="title" style="width: 50px">
                                        <div>
                                            ID</div>
                                    </th>
                                    <th class="title">
                                        <div>
                                            Category Name</div>
                                    </th>
                                    <th class="title">
                                        <div>
                                            Link</div>
                                    </th>
                                    <th class="title">
                                        <div>
                                            Parrent</div>
                                    </th>
                                    <th class="title">
                                        <div>
                                            Summary</div>
                                    </th>
                                    <th class="title" style="width: 100px">
                                        <table width="100%">
                                            <tr>
                                                <td colspan="2">
                                                    <div>
                                                        Status</div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <div>
                                                        True<br />
                                                        <asp:CheckBox ID="ckbmanager_True" runat="server" AutoPostBack="true" Checked="true"
                                                            OnCheckedChanged="manager_True_CheckedChanged" />
                                                    </div>
                                                </td>
                                                <td>
                                                    <div>
                                                        False<br />
                                                        <asp:CheckBox ID="ckbmanager_False" runat="server" AutoPostBack="true" OnCheckedChanged="ckbmanager_False_CheckedChanged" />
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </th>
                                    <th class="title">
                                        <div>
                                            Select
                                        </div>
                                    </th>
                                </tr>
                                <asp:DataList ID="manager_item" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow"
                                    OnItemCommand="manager_item_ItemCommand">
                                    <ItemTemplate>
                                        <tr>
                                            <td class="menumanager_Table_ID">
                                                <div>
                                                    <asp:Label ID="lbmanager_Table_ID" runat="server" Text='<%#Eval("CategoryID") %>' />
                                                </div>
                                            </td>
                                            <td class="a">
                                                <div>
                                                    <asp:Label ID="lbmanager_Table_CategoryName" runat="server" Text='<%#Eval("CategoryName") %>' />
                                                </div>
                                            </td>
                                            <td class="a">
                                                <div>
                                                    <asp:Label ID="lbmanager_Table_Link" runat="server" Text='<%#Eval("Link") %>' />
                                                </div>
                                            </td>
                                            <td class="a">
                                                <div>
                                                    <asp:Label ID="lbmanager_Table_Parrent" runat="server" Text='<%#Eval("Parrent") %>' />
                                                </div>
                                            </td>
                                            <td class="a">
                                                <div>
                                                    <asp:Label ID="lbmanager_Table_Summary" runat="server" Text='<%#Eval("Summary") %>' />
                                                </div>
                                            </td>
                                            <td class="a">
                                                <div>
                                                    <asp:Label ID="lbmanager_Table_Status" runat="server" Text='<%#Eval("Status") %>' />
                                                </div>
                                            </td>
                                            <td class="a">
                                                <div>
                                                    <asp:Button ID="btnSelect" runat="server" Text="Select" />
                                                </div>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:DataList>
                            </table>
                        </td>
                    </tr>
                </table>
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="managerAdd" />
                <asp:AsyncPostBackTrigger ControlID="managerChange" />
                <asp:AsyncPostBackTrigger ControlID="managerCancel" />
            </Triggers>
        </asp:UpdatePanel>
    </div>
</asp:Content>
